package com.apexedu.portal.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by janabo on 2014-12-12.
 */
@Entity
@Table(name = "APP_CONTACTS")
public class AppContacts implements Serializable {
    private int id;
    private String name;
    private String phone;
    private String departmentid;

    @Id
    @Column(name = "ID")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "PHONE")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Basic
    @Column(name = "DEPARTMENTID")
    public String getDepartmentid() {
        return departmentid;
    }

    public void setDepartmentid(String departmentid) {
        this.departmentid = departmentid;
    }


    @Override
    public String toString() {
        return "AppContacts{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", departmentid='" + departmentid + '\'' +
                '}';
    }
}
